package com.example.system.dao;

import com.example.system.model.AdminRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminRoleDao {
    int deleteByPrimaryKey(Integer id);

    int insert(AdminRole record);

    int insertSelective(AdminRole record);

    AdminRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AdminRole record);

    int updateByPrimaryKey(AdminRole record);

    void insertList(@Param("adminRoles") List<AdminRole> adminRoles);

    void deleteByAdminId(@Param("adminId") Integer adminId);

    void deleteBatchByAdminIds(@Param("adminIds") List<Integer> adminIds);



    void deleteBatchByRoleIds(@Param("roleIds") List<Integer> roleIds);

}